<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>原料仓库管理系统</title>
</head>
<?php
session_start();
if ($_SESSION['username']!=null){
	
}else{
	 echo"<script type='text/javascript'>location='CKGL-index.php';
			</script>";
}
?>

<body>
<?php 
require('lianjie.php');
?>
<form action="cksj_update_ok.php" method="post" name="f2">
<table  align="center" width="35%" border="1" cellpadding="1" cellspacing="1" bordercolor="#000000" bgcolor="#cccccc">
<?php
if(isset($_GET['0'])){
$name=$_GET['0'];}
if(isset($_GET['1'])){
$ph=$_GET['1'];}
if(isset($_GET['2'])){
$id=$_GET['2'];}
if(isset($_GET['3'])){
$biao=$_GET['3'];}


if(mysqli_select_db($connID,$dbName)){
	$sql="select * from ".$biao." where name='".$name."' and PH='".$ph."' and id='".$id."';";
	//echo $sql;
	$result=mysqli_query($connID,$sql);
	if($myrow=mysqli_fetch_array($result)){
	?>
    <tr>
    <td align="center"><input type="tel" name="tel" value="<?php echo $biao;?>" /></td>
    </tr>
    <tr>
    <td align="center">原料名称:</td>
    <td align="center"><input type="text" name="name" value="<?php echo $myrow[1];?>" /></td>
    </tr>
    <tr>
    <td align="center">批号:</td>
    <td align="center"><input type="text" name="ph" value="<?php echo $myrow[2];?>" /></td>
    </tr>
    <tr>
    <td align="center">手册号:</td>
    <td align="center"><input type="text" name="id" value="<?php echo $myrow[3];?>" /></td>
    </tr>
    <tr>
    <td align="center">实物量:</td>
    <td align="center"><input type="text" name="SW" value="<?php echo $myrow[6];?>" /></td>
    </tr>
    <tr>
    <td align="center">钴金属量:</td>
    <td align="center"><input type="text" name="GU" value="<?php echo $myrow[7];?>" /></td>
    </tr>
    <tr>
    <td align="center">镍金属量:</td>
    <td align="center"><input type="text" name="NIE" value="<?php echo $myrow[8];?>" /></td>
    </tr>
    <tr>
    <td align="center">锰金属量:</td>
    <td align="center"><input type="text" name="MENG" value="<?php echo $myrow[9];?>" /></td>
    </tr>
    <tr>
    <td align="center">铜金属量:</td>
    <td align="center"><input type="text" name="TONG" value="<?php echo $myrow[10];?>" /></td>
    </tr>
    <tr>
    <td align="center">锂金属量:</td>
    <td align="center"><input type="text" name="LI" value="<?php echo $myrow[11];?>" /></td>
    </tr>
    <tr>
    <td align="center">包数:</td>
    <td align="center"><input type="text" name="BS" value="<?php echo $myrow[12];?>" /></td>
    </tr>
    <tr>
    <td align="center">库区:</td>
    <td align="center"><input type="text" name="KQ" value="<?php echo $myrow[14];?>" /></td>
    </tr>
    <tr>
    <td align="center">储位:</td>
    <td align="center"><input type="text" name="CW" value="<?php echo $myrow[15];?>" /></td>
    </tr>
    <?php
	}
}
?>
<tr>
<td align="center"><input type="submit" name="sub" value="确认修改" /></td>
<td align="center"><a href="CKGL_cksj.php">取消修改</a></td>
</tr>
</table>
</form>
</body>
</html>